package com.tianji.aigc.service.impl;

import com.tianji.aigc.entity.MongoChatMessage;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface MongoChatMessageService extends MongoRepository<MongoChatMessage, String> {
    List<MongoChatMessage> findBySessionIdOrderByCreateTimeAsc(String sessionId);
    void deleteBySessionId(String sessionId);
}